package com.wu.service.sys;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wu.base.ApiResponse;
import com.wu.entity.sys.SRoleDo;
import com.wu.pojo.reqeust.BaseRequest;
import com.wu.pojo.reqeust.CommonIdRequest;
import com.wu.pojo.reqeust.CommonIdStatusRequest;
import com.wu.pojo.reqeust.sys.*;


/**
 * 角色表(SRole)表服务接口
 *
 * @since 2020-12-29 13:20:29
 */
public interface SRoleService extends IService<SRoleDo> {

    /**
     * 角色 列表
     * */
    ApiResponse optionList(BaseRequest request);

    ApiResponse listRole(ListRoleRequest request);
    /**
     * 新增/修改 角色
     * */
    ApiResponse save(SaveRoleRequest request);

    ApiResponse edit(UpdateRoleRequest request);

    ApiResponse onOrOff(CommonIdStatusRequest request);

    /**
     * 删除 角色
     * */
    ApiResponse deleteRole(CommonIdRequest request);

    ApiResponse editResource(RoleResourceEditRequest request, Long userId);

    ApiResponse getById(CommonIdRequest request);

    ApiResponse roleUserList(RoleUserListRequest request);

}